export default {

    /**
     * 输入框
     */
    input: 'Input',

    /**
     * 输入框
     */
    password: 'Password',

    /**
     * 文本域
     */
    textarea: 'Textarea',

    /**
     * 单选框
     */
    radio: 'Radio',

    /**
     * 复选框
     */
    checkbox: 'Checkbox',

    /**
     * 步进器
     */
    inputNumber: 'InputNumber',

    /**
     * 选择器
     */
    select: 'Select',

    /**
     * 开关
     */
    switch: 'Switch',

    /**
     * 滑块
     */
    slider: 'Slider',

    /**
     * 虚拟选择器
     */
    selectV2: 'SelectV2',

    /**
     * 按钮
     */
    button: 'Button',

    /**
     * 表单控件的基本设置
     */
    defaultControlSettings: {
        Input: {
            prev: false,
            type: 'Input',
            maxlength: 80,
            minlength: 0,
            label: '输入框',
            selected: false,
            disabled: false,
            readonly: false,
            clearable: false,
            placeholder: '输入框',
            validateEvent: true,
            name: 'Input',
            width: '46%'
        },
        Password: {
            prev: false,
            type: 'Password',
            maxlength: 80,
            minlength: 0,
            label: '密码框',
            selected: false,
            disabled: false,
            readonly: false,
            validateEvent: true,
            showPassword: false,
            placeholder: '密码框',
            name: 'Password',
            width: '46%'
        },
        Textarea: {
            rows: 2,
            prev: false,
            minlength: 0,
            maxlength: 300,
            label: '文本域',
            selected: false,
            disabled: false,
            readonly: false,
            type: 'Textarea',
            placeholder: '文本域',
            validateEvent: true,
            name: 'Textarea',
            showWordLimit: false,
            width: '46%'
        },
        Radio: {
            prev: false,
            border: false,
            type: 'Radio',
            label: '单选框',
            name: 'Radio',
            disabled: false,
            options: [
                {
                    value: 0,
                    label: '选项一'
                },
                {
                    value: 1,
                    label: '选项二'
                }
            ],
            radioType: 'default',
            size: 'medium',
            width: '46%'
        },
        Checkbox: {
            prev: false,
            minlength: 0,
            maxlength: 5,
            border: false,
            label: '复选框',
            disabled: false,
            name: 'Checkbox',
            type: 'Checkbox',
            options: [
                {
                    value: 0,
                    label: '选项一',
                    checked: false
                },
                {
                    value: 1,
                    label: '选项二',
                    checked: false
                }
            ],
            width: '46%'
        },
        InputNumber: {
            step: 1,
            prev: false,
            precision: 0,
            minlength: 0,
            border: false,
            maxlength: 100,
            controls: true,
            label: '步进器',
            disabled: false,
            type: 'InputNumber',
            name: 'InputNumber',
            width: '46%'
        },
        Select: {
            prev: false,
            type: 'Select',
            label: '选择器',
            multiple: true,
            disabled: false,
            multipleLimit: 0,
            clearable: false,
            collapseTags: false,
            stepStrictly: false,
            placeholder: '选择器',
            options: [
                {
                    value: 0,
                    label: '选项一'
                },
                {
                    value: 1,
                    label: '选项二'
                }
            ],
            name: 'Select',
            width: '46%'
        },
        SelectV2: {
            prev: false,
            multiple: false,
            disabled: false,
            multipleLimit: 0,
            clearable: false,
            type: 'SelectV2',
            label: '虚拟选择器',
            collapseTags: false,
            stepStrictly: false,
            placeholder: '虚拟选择器',
            options: [
                {
                    value: 0,
                    label: '选项一'
                },
                {
                    value: 1,
                    label: '选项二'
                }
            ],
            name: 'SelectV2',
            width: '46%'
        },
        Switch: {
            widthPx: 40,
            prev: false,
            type: 'Switch',
            disabled: false,
            label: '开  关',
            activeValue: 1,
            inactiveValue: 0,
            name: 'Switch',
            width: '46%'
        },
        Slider: {
            step: 1,
            prev: false,
            minlength: 0,
            name: 'Slider',
            maxlength: 100,
            type: 'Slider',
            label: '滑  块',
            disabled: false,
            showInput: false,
            showToolTip: true,
            showInputControls: true,
            width: '46%'
        },
        Button: {
            prev: false,
            plain: false,
            round: false,
            label: '按钮',
            type: 'Button',
            buttonType: '',
            disabled: false,
            width: '46%'
        }
    }
}
